export {}
class Father{
	static fatherName:string = 'fatherName'
	public name:string; // public 自己的子类和其他类都能访问
	protected age:number; // protected 自己和子类能访问，其他类不行
	private money:number; // private 自己能访问，子类 其他类都不行
	constructor(name:string,age:number, money:number){
		this.name = name;
		this.age = age
		this.money = money
	}
	getName():string{
		return this.name
	}
}
class Child extends Father{
	static childName:string = 'childName'
	constructor(name:string,age:number,money:number){
		super(name,age,money);
	}
	desc(){
		console.log(this.name,this.age)
	}
}
let child = new Child('jin',2,3)
console.log(child.name)